export default {
    //木桩
    "142": {
        "与他切磋": async (characters_id) => {
            //加入战斗剧情
            G.FightUtils.create_monster_fight(characters_id, "1", 0);
        },
    },
    "74": {
        "新建帮派": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            let client_id = G.Characters.get_characters_client_id(characters_id);
            let gang_data = _GangDataCache.get(characters["BPID"]);
            if (gang_data !== undefined) {
                ClientUtils.send_basic_prompt(client_id, "你已经有一个帮派了");
            } else {
                ClientUtils.send_client_message(client_id, 204, 1);
            }
        },
        "加入帮派": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            let client_id = G.Characters.get_characters_client_id(characters_id);
            let gang_data = _GangDataCache.get(characters["BPID"]);
            if (gang_data !== undefined) {
                ClientUtils.send_basic_prompt(client_id, "你已经有一个帮派了");
            } else {
                let send_data = [];
                _GangDataCache.forEach((gang_data, _key) => {
                    send_data.push({
                        "编号": gang_data["帮派编号"],
                        "名称": gang_data["帮派名称"],
                        "实力": gang_data["帮战胜利"],
                        "帮派规模": gang_data["帮派规模"],
                        "现任帮主": gang_data["现任帮主"],
                        "副帮主": gang_data["副帮主"],
                        "宗旨": gang_data["帮派公告"],
                        "繁荣度": gang_data["繁荣度"],
                        "成员数量": gang_data["成员数量"],
                    });
                });
                ClientUtils.send_client_message(client_id, 206, send_data);
            }
        },
        "我要回帮派": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            let client_id = G.Characters.get_characters_client_id(characters_id);
            if (!_GangDataCache.has(characters["BPID"])) {
                ClientUtils.send_basic_prompt(client_id, "你还没有帮派");
            } else {
                G.MapUtils.move_characters_to_map(characters, 1217, 131, 101);
            }
        },
        "没事啦": async (characters_id) => { }
    },
    "104": {
        "查看所有副本": async (characters_id) => {
            let first = ["考官2", "副本官员", "我这里显示所有副本任君选择，并且我可以将你传送到相应副本处哦"];
            let select = ["乌鸡国", "车迟斗法", "水陆大会", "通天河", "五更寒", "双城记", "红孩儿", "泾河龙王", "大闹天宫", "秘境降妖", "七绝山", "天火之殇", "齐天大圣", "我什么都不想做"];
            ClientUtils.send_characters_client_dialogue(characters_id, first[0], first[1], first[2], select, [], null, [1001, 104, "副本官员"]);
        },
        "乌鸡国": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1026, 26, 25);
        },
        "车迟斗法": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1070, 131, 143)
        },
        "水陆大会": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1002, 34, 78)
        },
        "通天河": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1070, 47, 71)
        },
        "五更寒": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1501, 87, 29)
        },
        "双城记": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1501, 87, 29)
        },
        "红孩儿": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1210, 168, 23)
        },
        "泾河龙王": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1044, 70, 52)
        },
        "大闹天宫": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1070, 53, 194)
        },
        "秘境降妖": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1001, 110, 49)
        },
        "七绝山": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1173, 79, 43)
        },
        "天火之殇": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1107, 18, 21)
        },
        "齐天大圣": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            G.MapUtils.move_characters_to_map(characters, 1092, 198, 13)
        },
    },
    "106": {
        "跳过剧情任务": async (characters_id) => {
            let npc_data = G.MapNpcData.default[1001][106];
            ClientUtils.send_characters_client_dialogue(characters_id, npc_data["模型"], npc_data["名称"], "跳过剧情，请按照顺序依次跳过！", ["玄奘的身世", "沙僧剧情", "含冤小白龙", "女娲神迹", "八戒悟空"]);
        },
        "玄奘的身世": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            if (characters["剧情"]["主线"] < 3) {
                G.Characters.add_exp(characters_id, 10000000);
                G.Characters.add_plot_point(characters_id, 5);
                characters["剧情"] = { "主线": 3, "编号": 9, "地图": 1070, "进度": 1, "附加": {} };
                ClientUtils.send_characters_client_message(characters_id, 227, characters["剧情"]);
            }
        },
        "沙僧剧情": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            if (characters["剧情"]["主线"] === 3) {
                G.Characters.add_exp(characters_id, 10000000);
                G.Characters.add_plot_point(characters_id, 5);
                characters["剧情"] = { "主线": 4, "编号": 32, "地图": 1173, "进度": 1, "附加": {} };
                ClientUtils.send_characters_client_message(characters_id, 227, characters["剧情"]);
            }
        },
        "含冤小白龙": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            if (characters["剧情"]["主线"] === 4) {
                if (characters["等级"] < 75) {
                    ClientUtils.send_characters_basic_prompt(characters_id, "#Y/跳过本剧情需要75级");
                    return;
                }
                G.Characters.add_exp(characters_id, 10000000);
                G.Characters.add_plot_point(characters_id, 5);
                characters["剧情"] = { "主线": 5, "编号": 18, "地图": 1111, "进度": 1, "附加": {} };
                ClientUtils.send_characters_client_message(characters_id, 227, characters["剧情"]);
            }
        },
        "女娲神迹": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            if (characters["剧情"]["主线"] === 5) {
                if (characters["等级"] < 100) {
                    ClientUtils.send_characters_basic_prompt(characters_id, "#Y/跳过本剧情需要100级");
                    return;
                }
                G.Characters.add_exp(characters_id, 10000000);
                G.Characters.add_plot_point(characters_id, 5);
                characters["剧情"] = { "主线": 6, "编号": 2, "地图": 1174, "进度": 1, "附加": {} };
                ClientUtils.send_characters_client_message(characters_id, 227, characters["剧情"]);
            }
        },
        "八戒悟空": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            if (characters["剧情"]["主线"] === 6) {
                if (characters["等级"] < 120) {
                    ClientUtils.send_characters_basic_prompt(characters_id, "#Y/跳过本剧情需要120级");
                    return;
                }
                G.Characters.add_exp(characters_id, 10000000);
                G.Characters.add_plot_point(characters_id, 5);
                characters["历劫"]["女娲"] = true;
                characters["剧情"] = { "主线": 7, "编号": 2, "地图": 1114, "进度": 1, "附加": {} };
                ClientUtils.send_characters_client_message(characters_id, 227, characters["剧情"]);
            }
        }
    },
    "132": {
        "啧，这么凶，看我阻止你！": async (characters_id) => {
            //加入战斗剧情
            G.FightUtils.create_monster_fight(characters_id, "4-6", "4-6");
        },
    },
    "147": {
        "购买赐福道具": async (characters_id) => {
            ClientUtils.send_characters_shoping_list(characters_id, 32);
        },
        "我的召唤兽需要你的赐福": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            // 刷新召唤兽数据
            ClientUtils.send_characters_client_message(characters_id, 16, characters["召唤兽"]);
            // 打开丸子赐福窗口
            let send_data = {
                "道具": {
                    "银子": characters["银子"],
                    "储备": characters["储备"],
                    "存银": characters["存银"],
                    "道具": characters["道具"],
                },
                "丸子赐福": { "进程": 1, "技能": [], "认证码": 0 }
            };
            ClientUtils.send_characters_client_message(characters_id, 352, send_data);
        },
        "超级技能都有哪些？": async (characters_id) => {
            let npc_data = G.MapNpcData.default[1001][147];
            ClientUtils.send_characters_client_dialogue(characters_id, npc_data["模型"], npc_data["名称"],
                "少侠超级技能的魔兽要诀共有43种，其中38本是被动超级技能，5本是主动技能。具体介绍请打开召唤兽资质栏鼠标指定高级魔兽要诀按ALT即可显示详情。");
        },
        "制作仙露丸子": async (characters_id) => {
            let characters = _CharactersData.get(characters_id);
            // 刷新道具
            G.Characters.refrush_item_data(characters_id, ["道具"]);
            // 打开制作仙露丸子窗口
            let send_item_data = {
                "银子": characters["银子"],
                "储备": characters["储备"],
                "存银": characters["存银"],
                "道具": characters["道具"],
            };
            ClientUtils.send_characters_client_message(characters_id, 350, send_item_data);
        },
        "我只是来找你玩的": async (characters_id) => {

        },
    },
}